<?php
/**
 * Date: 2024.8
 * Author: kahn
 */
namespace models\vip;

use driver\ThinkOrm;

class GoodsModel extends ThinkOrm
{
    protected $table = 'vip_goods';
    protected $pk = 'id';

    public static function list()
    {
        return static::where('status',1)
            ->field('id, title, days, price, iapId, sort')
            ->order('sort', 'asc')
            ->select()
            ->toArray();
    }
}